package com.bootdo.kaoqin.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-09-27 20:53:35
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class KaoqinConfig extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//ID
	 @NotColumn 	@HapiFeild("ID")
	private Long id;
	
	//用户ID
		@HapiFeild("用户ID")
		@JSONField(serialize=false)
	private Long userId;
	
	//用户名字
		@HapiFeild("用户名字")
		@JSONField(serialize=false)
	private String userName;
	
	//类型 0是上班卡 1是下班卡
		@HapiFeild("类型")
	private Integer type;
	
	//时间
		@HapiFeild("开始")
	@JsonFormat(pattern="HH:mm:ss")
	private Date startTime;
	
	//
		@HapiFeild("结束")
		@JsonFormat(pattern="HH:mm:ss")
	private Date endTime;
	
	//创建时间
		@HapiFeild("创建时间")
		@JSONField(serialize=false)
	private Date createTime;
	@JSONField(serialize=false)
	private String name ;


	@JSONField(serialize=false)
	private Long groupId;
	@JSONField(serialize=false)
	private String groupName;

	private Integer paixu;

    public KaoqinConfig(){
    	this.paixu = 20;
    	this.createTime = new Date();
    }

	public Integer getPaixu() {
		return paixu;
	}

	public void setPaixu(Integer paixu) {
		this.paixu = paixu;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 设置：ID
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：ID
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：用户名字
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 获取：用户名字
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 设置：类型
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 获取：类型
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * 设置：时间
	 */
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	/**
	 * 获取：时间
	 */
	public Date getStartTime() {
		return startTime;
	}
	/**
	 * 设置：
	 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	/**
	 * 获取：
	 */
	public Date getEndTime() {
		return endTime;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	@JSONField(serialize=false)
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
